package com.xsp.service;

import com.xsp.entity.Bank;

/**
 * @author xsp
 * @date 2024/1/22
 * @desc
 */
public interface BankService {
    /**
     * 转账业务
     *
     * @param fromAccount 扣款账户
     * @param toBank      收款账户
     * @param money       转账金额
     */
    default boolean transferMoney(Bank fromAccount, Bank toBank, Integer money) throws Exception {
        return false;
    }

    default boolean remove(Integer id) {
        return false;
    }
}
